package com.migo.utils;

/**
 * Created by paik on 2017/12/11.
 */
public class PhoneUtilRunable implements Runnable {
    private String ip;
    private String userPhone;
    private String code;

    public PhoneUtilRunable(String code, String userPhone, String ip) {
        this.ip = ip;
        this.userPhone = userPhone;
        this.code = code;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public void run() {
        PhoneUtil.sendPhoneCode(code,userPhone,ip);
    }
}
